package tank;

import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class Main {
	public static void main(String[] args) throws InterruptedException {
		TankFrame f = new TankFrame();
		int initTankCount = Integer.parseInt((String)PropertyMgr.get("initTankCount"));
		for(int i=0;i<initTankCount;i++) {
			f.tanks.add(f.abstractTankBeanFactory.creatTank(50+i*80,200,Dir.DOWN,Group.BAD,f));
		}
		new Thread(()->new Audio("audio/war1.wav").loop()).start();
		while(true) {
			Thread.sleep(50);
			f.repaint();
		}
	}
}
